/*
 * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
 */
/*jslint anon:true, sloppy:true, nomen:true*/
YUI.add('StaticModelProduct', function(Y, NAME) {

	/**
	 * The StaticModelStore module.
	 * 
	 * @module Header
	 */

	/**
	 * Constructor for the HeaderModelFoo class.
	 * 
	 * @class HeaderModelFoo
	 * @constructor
	 */
	Y.namespace('mojito.models')[NAME] = {

		init : function(config) {
			this.config = config;
			this.tableName = "product";
		},


		getAllProducts : function(callback, limit, offset, filters) {
			var dao = new Y.fmas.DAO();
			dao.select(this.tableName, function(err, rows, fields) {
				callback(err, rows);
			}, limit, offset, filters);
		}

	};

}, '0.0.1', {
	requires : [ 'dao' ]
});
